//
//  LeftHeader.m
//  ArtCircle
//
//  Created by sunbin on 2017/5/19.
//  Copyright © 2017年 Quanli. All rights reserved.
//

#import "LeftHeader.h"

@interface LeftHeader()

@property (weak, nonatomic) IBOutlet UIImageView *sexImg;

@end

@implementation LeftHeader

- (void)awakeFromNib {
    [super awakeFromNib];
    
    
    [_icon zy_cornerRadiusAdvance:_icon.frame.size.width rectCornerType:UIRectCornerTopLeft | UIRectCornerBottomRight | UIRectCornerBottomLeft | UIRectCornerTopRight];
    
    [_icon zy_attachBorderWidth:2.f color:[UIColor clearColor]];
    
    [_icon setImage:[UIImage imageNamed:@"yiquanSelect"]];
}



- (void)loadData:(ACUserModel *)model {
    
    _nickName.text = IF_Binding(model.nickname, model.phone);
    
    NSLog(@"性别 要判断 1男 2女 0无 ==%@  %@" ,IF_NULL_TO_STRING(model.sex) ,IF_NULL_TO_STRING(model.fanscount));
    
    
    _fansCount.text = model.fanscount;
    _attentionCount.text = model.attentioncount;
    
    _sexImg.image = ([IF_NULL_TO_STRING(model.sex) isBlank] || [IF_NULL_TO_STRING(model.sex) isEqualToString:@"0"])?nil:[IF_NULL_TO_STRING(model.sex) isEqualToString:@"1"]?IMAGE(@"man"):IMAGE(@"woman");
}















@end
